package com.magic.gre.mvp.contract;

import com.magic.gre.entity.AnswerBean;
import com.noname.lib_base_java.mvp.BaseContract;

import java.util.List;

import io.reactivex.Observer;
import okhttp3.ResponseBody;

/**
 * Author: Lmoumou
 * Date: 2019-01-08 19:12
 * 文件名: AnswerContract
 * 描述:
 */
public interface AnswerContract {
    interface Model extends BaseContract.BaseModel {
        void mGetSubs(Observer<ResponseBody> observer, String unitId);

        void mSumbitReslut(Observer<ResponseBody> observer,String unitId,int right,long cost_time,int total);
    }

    interface Presenter extends BaseContract.BasePresenter {
        void pGetSubs(String unitId);

        void pSumbitResult(String unitId,int right,long cost_time,int total);
    }

    interface View extends BaseContract.BaseView {
        void vGetSubs(List<AnswerBean> beanList);

        void vSumbitResult(String id);
    }
}
